package com.wit.po;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;

/**
 * Worklog entity. @author MyEclipse Persistence Tools
 */

public class Worklog implements java.io.Serializable {

	// Fields

	private Integer logId;
	private Employee employee;
	private Timestamp logdate;
	private String logTitle;
	private String logCont;
	private Timestamp createTime;
	private Timestamp updateTime;
	
	// Constructors

	/** default constructor */
	public Worklog() {
	}

	/** full constructor */
	public Worklog(Employee employee, Timestamp logdate, String logCont) {
		this.employee = employee;
		this.logdate = logdate;
		this.logCont = logCont;
	}

	public String getFormattedLogdate()
	{
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
		return format.format(logdate);
	}
	
	// Property accessors

	public Integer getLogId() {
		return this.logId;
	}

	public void setLogId(Integer logId) {
		this.logId = logId;
	}

	public Employee getEmployee() {
		return this.employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	public Timestamp getLogdate() {
		return this.logdate;
	}

	public void setLogdate(Timestamp logdate) {
		this.logdate = logdate;
	}

	public String getLogCont() {
		return this.logCont;
	}

	public void setLogCont(String logCont) {
		this.logCont = logCont;
	}

	public String getLogTitle() {
		return logTitle;
	}

	public void setLogTitle(String logTitle) {
		this.logTitle = logTitle;
	}

	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}
	
	public Timestamp getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}
}